package com.zhang.modules.mianShi.entity;

import com.zhang.common.jpa.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity(name = "Region")
@Table(name = "app_region")
public class Region extends BaseEntity {

    @Size(max = 255)
    @NotNull
    @Column(name = "region_code", nullable = false)
    private String regionCode;

    @Size(max = 255)
    @NotNull
    @Column(name = "region_name", nullable = false)
    private String regionName;

    @Size(max = 255)
    @NotNull
    @Column(name = "machine_group_id", nullable = false)
    private String machineGroupId;

}